Skip to main content

ContentControlPropertiesAndContent

The content control properties and contents.

Properties

NameTypeDescription
ContentControlPropertiesContentControlPropertiesThe content control properties.
ScriptstringA script that will be executed to generate the data within the content control (can be replaced with the Url parameter).
UrlstringA link to the shared file (can be replaced with the Script parameter).

Type

Object

Example

let documents = [{
"Props": {
"Id": 100,
"Tag": "CC_Tag",
"Lock": 3
},
"Script": "var oParagraph = Api.CreateParagraph();oParagraph.AddText('Hello world!');Api.GetDocument().InsertContent([oParagraph]);"
}];
window.Asc.plugin.executeMethod("InsertAndReplaceContentControls", [documents]);